home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7.33 (October) / PC Gamer Disc 7.33 (October 2003).ISO / Data / items.pcg / scripts / DefineButton2_106 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2003-07-17  |  922b  |  23 lines

  1. on(release){
  2.    if(_parent.currentTab == 1)
  3.    {
  4.       _parent.selectItem(1,_parent.demonumber1,_parent.lastButton,"TheCurrentDemo","demos",_parent.demoCount,"currentDemoCount","lastDemoBox");
  5.    }
  6.    if(_parent.currentTab == 2)
  7.    {
  8.       _parent.selectItem(1,_parent.extranumber1,_parent.lastButton,"TheCurrentExtra","extras",_parent.extraCount,"currentExtraCount","lastExtraBox");
  9.    }
  10.    if(_parent.currentTab == 3)
  11.    {
  12.       if(eval("_parent.filetype" + _parent.filenumber1) != "separator")
  13.       {
  14.          _parent.selectItem(1,_parent.filenumber1,_parent.lastButton,"TheCurrentFile","file",_parent.fileCount,"currentFileCount","lastFileBox");
  15.       }
  16.    }
  17.    if(_parent.currentTab == 4)
  18.    {
  19.       var i = _parent.gamenumber1 - 1;
  20.       _parent.selectItem(1,_parent.arGamesIndexSlice[i],_parent.lastButton,"TheCurrentGame","database",_parent.dbCount,"currentGameCount","lastGameBox");
  21.    }
  22. }
  23.